﻿<UserControl xmlns:View="clr-namespace:TfsBranchLib2.View" x:Class="TfsBranchLib2.View.BranchComboBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="47"
             d:DesignWidth="150" xmlns:my="clr-namespace:WpfAdvControls.StatusPanel;assembly=WpfAdvControls">
    <UserControl.Resources>
        <ResourceDictionary Source="/WpfAdvControls;component/Themes/DrawingResources.xaml" />
    </UserControl.Resources>
    <Grid>
        <ComboBox Name="branchCombo" Margin="0,25,1,0" DropDownOpened="BranchComboDropDownOpened">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <View:BranchItemControl Branch="{Binding}"/>
                    </Grid>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Button Height="22" Margin="0,1,1,0" Name="settings" VerticalAlignment="Top" HorizontalAlignment="Right"
                Width="23" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"
                Content="{StaticResource Cogweel}" />
        <Label Content="Branches" Height="28" Name="header" VerticalAlignment="Top" Margin="0,-1,0,0"
               HorizontalAlignment="Left" Width="80" />
        <my:StatusBox Margin="0,6,30,0" Name="branchesProviderStatus" VerticalAlignment="Top" Height="13"
                      HorizontalAlignment="Right" Width="13" />
    </Grid>
</UserControl>